﻿namespace PnFramework
{
    public class DataHelper
    {
        /// <summary>
        /// 将[Omin，Omax]上每个数映射到区间[Nmin，Nmax]上
        /// </summary>
        public static float ReMapNumber(float oXY, float oMin, float oMax, float nMin, float nMax) => (nMax - nMin) / (oMax - oMin) * (oXY - oMin) + nMin;
    }
}